package com.example.spring.framework.util;

/**
 * @author ：wuhong-016
 * @version v1.0.0
 * @Create : 2021/1/18 10:44
 * @Description : TODO
 **/
public class ClassUtils {

    public static boolean isCglibProxy(Object object) {
        return isCglibProxyClass(object.getClass());
    }

    public static boolean isCglibProxyClass(Class<?> clazz) {
        return clazz != null && isCglibProxyClassName(clazz.getName());
    }

    public static boolean isCglibProxyClassName(String className) {
        return className != null && className.contains("$$");
    }

}
